<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="itcast" uri="http://itcast.cn/common/"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>添加员工职业信息</title>
<!-- Bootstrap Core CSS -->
<link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!-- 导航 -->
    <nav class="navbar navbar-default ">
      <div class="container">
        <!-- 小屏幕按钮和logo -->
        <div class="navbar-header">
          <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a href="#" class="navbar-brand">RM admin</a>
        </div>
        <!-- 小屏幕按钮和logo -->
        <!-- 导航 -->
        <div class="collapse navbar-collapse">
           <ul class=" nav navbar-nav ">
             <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span> &nbsp;后台首页</a></li>
             <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    组织结构管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/organization/department">部门管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/organization/job">岗位管理</a></li>

                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    人事信息管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/employee/enterAddEmployee">员工入职管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/period/enterPeriod/">试用期管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/dept/out">部门调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/post/out">岗位调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/leave/out">员工离职管理</a></li>

                </ul>
            </li>
             <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    员工信息中心
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/infoemployee/list">员工信息中心</a></li>


                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    报表管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/statement/newHire">新聘员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/departure">离职员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/deptTurn">部门调动员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/postTurn">岗位调动员工报表</a></li>
                </ul>
            </li>
           </ul>
           <ul class=" nav navbar-nav navbar-right ">
             <li class="dropdown">
                <a href="#" class=" dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">admin
                    <span class="caret"></span>
                </a>
            </li>

             <li><a href="http://localhost:8080/PMsystem/admin/exit"><span class="glyphicon glyphicon-off"></span>&nbsp;退出</a></li>
           </ul>
        </div>
        <!-- 导航 -->
      </div>
    </nav>
   <!-- 导航 -->
   <div class="container-fluid">
       <div class="row">
           <div class="col-md-2">
               <div class="panel-group" id="accordion">
                   <div class="panel panel-info">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseThree" style="text-decoration: none;">
                            职业生涯信息维护
                              </a>
                          </h4>
                      </div>
                      <div id="collapseThree" class="panel-collapse collapse in">
                          <div class="panel-body">
                              <table class="table table-hover">
                              <tbody>
                                <tr>
                                  <td style="border:none;"><a href="${pageContext.request.contextPath }/content/addCareer.action?car_emp_id=${empId}"  style="text-decoration: none;">新增职业生涯信息</a></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>

                  <div class="panel panel-info">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseThreeo" style="text-decoration: none;">
                            外语能力信息维护
                              </a>
                          </h4>
                      </div>
                      <div id="collapseThreeo" class="panel-collapse collapse ">
                          <div class="panel-body">
                              <table class="table table-hover">
                              <tbody>
                                <tr>
                                  <td style="border:none;"><a href="${pageContext.request.contextPath }/content/addLanguage.action?lan_emp_id=${empId}"  style="text-decoration: none;">新增外语能力信息</a></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>

                  <div class="panel panel-info">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseThreeot" style="text-decoration: none;">
                            家庭成员及社会关系
                              </a>
                          </h4>
                      </div>
                      <div id="collapseThreeot" class="panel-collapse collapse ">
                          <div class="panel-body">
                              <table class="table table-hover">
                              <tbody>
                                <tr>
                                  <td style="border:none;"><a href="${pageContext.request.contextPath }/content/addSocial.action?fs_emp_id=${empId}" style="text-decoration: none;">新增家庭成员及社会关系</a></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>

              </div>

           </div>
           <div class="col-sm-10">
           <!-- 主体内容 -->
             <form role="form" id="add_career_form" >

                <div class="input-group">
                    <span class="input-group-addon">起始年月</span>
                    <input type="date" data-toggle="tooltip"
        data-placement="top" title="必填选项" class="form-control" name="car_date_s">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">截止年月</span>
                    <input type="date" class="form-control" name="car_date_e" data-toggle="tooltip"
        data-placement="top" title="必填选项">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所在单位名称</span>
                    <input type="text" class="form-control" placeholder="请输入当单位名称" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_com">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">从事工作内容</span>
                    <input type="text" class="form-control" placeholder="请输入从事工作内容" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_job">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">担任职务</span>
                    <input type="text" class="form-control" placeholder="请输入担任职务" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_business">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">年薪/月薪</span>
                    <input type="text" class="form-control" placeholder="请输入年薪/月薪" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_salary_year">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">证明人</span>
                    <input type="text" class="form-control" placeholder="请输入证明人" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_reference">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">证明人职务</span>
                    <input type="text" class="form-control" placeholder="请输入证明人职务" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_ref_business">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">证明人电话</span>
                    <input type="text" class="form-control" placeholder="请输入证明人电话" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_ref_phone">
                </div>
                <br>
                <div class="form-group">
                  <label for="name" style="
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;">备注</label>
                  <textarea class="form-control" rows="5" data-toggle="tooltip"
        data-placement="top" title="选填选项" name="car_remark"></textarea>
                </div>
                <br>
                <input type="hidden"  name="car_emp_id" value="${empId}">
                <button type="button" class="btn btn-success" onclick="addCareer()">提交</button>
                <button type="reset" class="btn btn-info">重置</button>
              </form>
           <!-- 主体内容 -->

           </div>



           </div>
       </div>
   <!-- </div> -->


   <!-- jQuery -->
	<script src="<%=basePath%>js/jquery-3.2.1.min.js"></script>

	<!-- Bootstrap Core JavaScript -->
	<script src="<%=basePath%>js/bootstrap.min.js"></script>
    <script type="text/javascript">
      $(function(){
        
         $("[data-toggle='tooltip']").tooltip();
      });
      
      function addCareer() {
			$.post("<%=basePath%>content/addCareerInfo.action",$("#add_career_form").serialize(),function(data){
				alert("客户信息添加成功！");				
				window.location.href='<%=basePath%>content/list.action?empId=${empId}';
			});
		}
    </script>
</body>
</html>